import Bill.BillList;

import java.sql.SQLException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws SQLException {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的姓名");
        String name = scanner.nextLine();
        User user = new User(name);
        System.out.println("欢迎" + user.name + "使用记帐本");
        System.out.println("************************");
        System.out.println("*******  1.支出  ********");
        System.out.println("*****    2.收入  ********");
        System.out.println("*****   3.显示账单   *****");
        System.out.println("*****  4.显示支出账单 *****");
        System.out.println("*****  5.显示收入账单 *****");
        System.out.println("*****   6.显示余额  ******");
        System.out.println("*******  7.修改  ********");
        System.out.println("*******  8.删除  ********");
        System.out.println("******** 0.退出  ********");
        System.out.println("************************");
        do{
            int choice = user.mnus();
            if(choice == -1){
                System.out.println("输入错误");
                continue;
            }
            user.DoPerator(choice);
        }while (true);
    }
}